home *** CD-ROM | disk | FTP | other *** search
- ##########################################################################
- ## Move files
- # I got a bug report that when in -detach mode, 'move' would only move
- # the first file.
- ## Well, looks like the CMD.EXE internal commands that take wildcards
- ## don't work in detached mode.
- ## To get things to work, you need and external command.
- {
- -start
- -stop
- # fails -- only moves one file
- #-command -detach cmd /c move c:\temp\from\*.* c:\temp\to
-
- # fails -- only copies one file
- #-command -detach cmd /c copy c:\temp\from\*.* c:\temp\to
-
- # works fine
- #-command cmd /c copy c:\temp\from\*.* c:\temp\to
-
- # fails -- only copies one file
- #-command -detach cmd /c c:\temp\mymove c:\temp\from\*.* c:\temp\to
-
- # Works! (using an external command 'MoveFile')
- -command -detach MoveFile c:\temp\from\*.* c:\temp\to
- }
-
-